<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <div>
        <!--.lazy：绑定change事件-->
        <input type="text" v-model.number="message1">
        <!--.trim：去除左右两边的空字-->
        <input type="text" v-model.trim="message2">
        <!--.number：将所绑定的值转换为数字-->
        <input type="text" v-model.lazy="message3">
    </div>
</div>
<script src="../../JavaScript/vue.js"></script>
<script>
    const app = Vue.createApp({
        data() {
            return {
                message1: "",
                message2: "",
                message3: "",
            }
        },
    })
    app.mount("#app")
</script>
</body>
</html>